From: Eli Zaretskii Date: Fri, 28 Oct 2011 18:41:09 +0000 (+0200) Subject: Fix use of uninitialized variable. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~844^2~424 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5a7a728bb736ee9beea6c30514e0dc95c966de13;p=emacs.git Fix use of uninitialized variable. src/xdisp.c (note_mouse_highlight): Initialize `part', to avoid a possible random value that matches one of those tested as condition to clear the mouse face. --- diff --git a/src/ChangeLog b/src/ChangeLog index da0ba4b11f2..fad9b4f9e46 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2011-10-28 Eli Zaretskii + + * xdisp.c (note_mouse_highlight): Initialize `part', to avoid a + possible random value that matches one of those tested as + condition to clear the mouse face. + 2011-10-28 Chong Yidong * xdisp.c (note_mouse_highlight): Fix use of uninitialized var. diff --git a/src/xdisp.c b/src/xdisp.c index 296b2d13219..22f7c2bbd26 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -26801,7 +26801,7 @@ void note_mouse_highlight (struct frame *f, int x, int y) { Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); - enum window_part part; + enum window_part part = ON_NOTHING; Lisp_Object window; struct window *w; Cursor cursor = No_Cursor;